Sample Application General Description
A report with a subreport is created off the xtreme.mdb database.
- The main report contains the Customer table and a parameter field.
- The subreport contains the Orders table and a formula field.
The OCX application consists of a Form with three Command Buttons and the OCX control.
Form Load:
- The Report is opened.
- The location of the database in the main report is changed.
- The parameter in the main report is set.
- The subreport is opened.
- The location of the database in the subreport is changed.
- A string is passed to the formula field in the subreport.
Command1
The report is previewed to screen.
Command2
- The printer is selected.
- The report is printed.
Command3
- The export options are set to export the report to a Rich Text Format.
- The report is exported.
A second form will be added when the application is created using the RDC. The Crystal Report Viewer is added to the second form for viewing the report.